Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow both @extension and @grpcExtension extensions in schema validation #1009

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

SpencerKwok
Copy link
Contributor

Summary

To help bridge rest.li with gRpc as part of the gRpc migration, this PR allows @extension and @grpcExtension extensions to co-exist in the same schema. More information can be found in SI-39662.

Tests

I added a unit test to check if @extension and @grpcExtension extensions can co-exist in the same schema. I depend on the previous existing tests to check for backwards compatibility.

@SpencerKwok SpencerKwok marked this pull request as ready for review July 11, 2024 22:35
*/
record BazExtensions includes Baz {
@extension.using = "finder: test"
@grpcExtension.rpc = "get"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what would be the expectation for translating this annotation to proto during migration?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The proto schema would look something like this.

Copy link
Contributor

@aman1309 aman1309 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aman1309 aman1309 merged commit b49908d into linkedin:master Jul 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants